import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/trade/pos_trade/merchantStatisticsList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const tradeList = (params) => {
  return request({
    // url: '/api/rb-oem/oem/trade/pos_trade/merchantList',
    url: '/api/rb-oem/oem/trade/pos_trade/merchantStatisticsDetail',
    method: 'get',
    params: {...params}
  })
}

/* 交易统计 导出 */
export const tradeExport = (params) => {
  return request({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',
    url: '/api/rb-oem/oem/trade/pos_trade/merchantStatisticsExport',
    method: 'get',
    params: {
      ...params
    }
  })
}


// export const tradeStatistics = (param) => {
//   return request({
//     url: '/api/rb-oem/oem/trade/pos_trade/statistics',
//     method: 'get',
//     params: {...param}
//   })
// }
